<template>
  <system-index>
    <coupon-tao-page :has-back="hasBack" @to-page="toPage"></coupon-tao-page>
  </system-index>
</template>

<script>
  import SystemIndex from 'views/systemIndex';
  import CouponTaoPage from 'views/couponTaoPage';

  import mpMixins from '../mpMixins';

  export default {
    mixins: [mpMixins],

    data() {
      let pages = getCurrentPages();
      return {
        hasBack: pages.length > 1
      };
    },

    components: {
      SystemIndex,
      CouponTaoPage
    }
  };

</script>
